#import <Cocoa/Cocoa.h>
#import "MuseekMessage.h"

@interface SolarSeekMessageWriter : NSObject {
	NSOutputStream *stream;
	NSMutableArray *queue;
  
	__weak id delegate;
  bool autoOpenStream;
}

@property (assign) NSOutputStream *stream;
@property (assign) __weak id delegate;
@property (assign) bool autoOpenStream;

-(void) open;
-(void) send:(MuseekMessage *)message;
+(SolarSeekMessageWriter *) writerWithStream:(NSOutputStream *)stream andDelegate:(id)delegate;
@end
